/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.pretorius.question3.plkViolation.model;

/**
 *
 * @author griddy
 */
public class Person {

    public Person(String name, String surname, int age) {
        this.name = name;
        this.surname = surname;
        this.age = age;
    }
    
    public Address getAddressObject()
    {
        return address;
    }

    public String getAddress() {
        return address.toString();
    }

    public void setAddress(String street,int number,String suburb,int postalCode) {
        this.address = new Address(street,number,suburb,postalCode);
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    
    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    private String name;
    private String surname;
    private Address address;
    private int age;
    
}
